package com.example.senorex;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    Button btn_gra;
    Button btn_lin;
    Button btn_amb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        btn_amb=findViewById(R.id.btn_three);
        btn_gra=findViewById(R.id.btn_one);
        btn_lin=findViewById(R.id.btn_two);
        btn_amb.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,temperature_activity.class);
                startActivity(intent);
            }
        });
        btn_lin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,Acceleration_activity.class);
                startActivity(intent);
            }
        });
        btn_gra.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(MainActivity.this,G_activity.class);
                startActivity(intent);
            }
        });
    }


}
